<div class="ibox-content" th:fragment="search(ptype)">
    <div class="row row-lg">
        <div class="col-sm-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    查询条件
                </div>
                <div class="panel-body form-inline" style="margin-bottom:0px;">
                    <div class="form-group">
                        <div class="input-group">
                            <div class="input-group-addon">关键词</div>
                            <input type="text" class="form-control" style="width:200px;text-align: center" name="search"
                                   id="search" placeholder=""/>
                        </div>
                        <div class="input-group" th:if="${#strings.contains(ptype,'%order')}">
                            <div class="input-group-addon">订单状态</div>
                            <select class="form-control" style="width: 100px;" id="qstatus">
                                <option value="99" selected>全部</option>
                                <option value="-1">已取消</option>
                                <option value="0">已关闭</option>
                                <option value="1">待支付</option>
                                <option value="2">待发货</option>
                                <option value="3">待确认</option>
                                <option value="4">待评价</option>
                                <option value="5">已完成</option>
                            </select>
                        </div>
                        <div class="input-group" th:if="${#strings.contains(ptype,'%accountflow')}">
                            <div class="input-group-addon">流水类型</div>
                            <select class="form-control" style="width: 100px;" id="qstatus">
                                <option value="99">全部</option>
                                <option value="1">充值</option>
                                <option value="2">提现</option>
                                <option value="3">赚佣金</option>
                                <option value="4">消费</option>
                                <option value="5">赠送</option>
                                <option value="6">扣款</option>
                                <option value="7">退款</option>
                                <option value="9">卖货</option>
                            </select>
                        </div>
                        <div class="input-group" th:if="${#strings.contains(ptype,'%jifenflow')}">
                            <div class="input-group-addon">积分类型</div>
                            <select class="form-control" style="width: 100px;" id="qstatus">
                                <option value="99">全部</option>
                                <option value="0">充值</option>
                                <option value="1">提现</option>
                                <option value="2">赚佣金</option>
                                <option value="3">消费</option>
                                <option value="4">赠送</option>
                                <option value="5">扣款</option>
                                <option value="5">退款</option>
                                <option value="5">卖货</option>
                            </select>
                        </div>
                        <div class="input-group" th:if="${#strings.contains(ptype,'%refundorder')}">
                            <div class="input-group-addon">售后类型</div>
                            <select class="form-control" style="width: 100px;" id="qstatus">
                                <option value="99">全部</option>
                                <option value="1">受理中</option>
                                <option value="2">等待退款</option>
                                <option value="3">退款成功</option>
                                <option value="4">退款失败</option>
                            </select>
                        </div>
                        <div class="input-group" th:if="${#strings.contains(ptype,'%feedback')}">
                            <div class="input-group-addon">反馈类型</div>
                            <select class="form-control" style="width: 100px;" id="qstatus">
                                <option value="99">全部</option>
                                <option value="1">商品相关</option>
                                <option value="2">物流状况</option>
                                <option value="3">客户服务</option>
                                <option value="4">优惠活动</option>
                                <option value="5">功能异常</option>
                                <option value="6">产品建议</option>
                                <option value="7">其他</option>
                            </select>
                        </div>
                        <div class="input-group" th:if="${#strings.contains(ptype,'%resource')}">
                            <div class="input-group-addon">素材类型</div>
                            <select class="form-control" style="width: 100px;" id="qstatus">
                                <option value="99">全部</option>
                                <option value="1">商品</option>
                                <option value="2">商品分类</option>
                                <option value="3">滚动图</option>
                                <option value="4">分类导航</option>
                                <option value="5">应用logo</option>
                                <option value="6">文件</option>
                                <option value="18">其他</option>
                            </select>
                        </div>
                        <div class="input-group" th:if="${#strings.contains(ptype,'%coupontpl')}">
                            <div class="input-group-addon">素材类型</div>
                            <select class="form-control" style="width: 100px;" id="qstatus">
                                <option value="99">全部</option>
                                <option value="1">代金券</option>
                                <option value="2">满减券</option>
                                <option value="3">折扣券</option>
                                <!--<option value="4">体验金</option>-->
                                <!--<option value="5">加息券</option>-->
                            </select>
                        </div>
                        <div class="input-group" th:if="${#strings.contains(ptype,'%newscategory')}">
                            <div class="input-group-addon">文章类型</div>
                            <select class="form-control" style="width: 100px;" id="ncategory">
                                <option value="">全部</option>
                                <option value="-10">关于我们</option>
                                <option value="-20">团队介绍</option>
                                <option th:each="c:${nlist}" th:value="${c.id}" th:text="${c.name}"></option>
                            </select>
                        </div>
                        <div class="input-group" th:if="${#strings.contains(ptype,'%gtype')}">
                            <div class="input-group-addon">商品类目</div>
                            <select class="form-control" style="width: 100px;" id="gcategory">
                                <option value="">全部</option>
                                <option th:each="c:${categorys}" th:value="${c.id}" th:text="${c.name}"></option>
                            </select>
                        </div>
                        <div class="input-group" th:if="${#strings.contains(ptype,'%sjtype')}" id="sjtype">
                            <div class="input-group-addon">商家类别</div>
                            <select class="form-control" style="width: 100px;" id="storetype">
                                <option value="">全部</option>
                                <option th:each="c:${business}" th:value="${c.id}" th:text="${c.name}"></option>
                            </select>
                        </div>
                        <div class="input-group" th:if="${#strings.contains(ptype,'%qtype')}">
                            <div class="input-group-addon">活动类型</div>
                            <select class="form-control" style="width: 100px;" id="qtype">
                                <option value="99">全部</option>
                                <option value="-5">神秘礼品</option>
                                <option value="-3">会员商品</option>
                                <option value="-2">券类商品</option>
                                <option value="-1">积分商品</option>
                                <option value="0">普通商品</option>
                                <option value="1">拼团活动</option>
                                <option value="2">砍价活动</option>
                                <option value="3">抽奖活动</option>
                                <option value="8">秒杀活动</option>
                                <option value="9">报名活动</option>
                                <option value="10">投票活动</option>
                                <option value="13">集赞活动</option>
                            </select>
                        </div>
                        <div class="input-group" th:if="${#strings.contains(ptype,'%state')}">
                            <div class="input-group-addon">上下架状态</div>
                            <select class="form-control" style="width: 100px;" id="qstate">
                                <option value="">全部</option>
                                <option value="1">上架</option>
                                <option value="-1">下架</option>
                            </select>
                        </div>
                        <div class="input-group"
                             th:if="${#strings.contains(ptype,'%mapp')&&#strings.contains(isAdmin,'1')}">
                            <div class="input-group-addon">请选择应用</div>
                            <select class="form-control" style="width: 100px;" id="qstatus">
                                <option th:each="c:${ulist}" th:value="${c.id}" th:text="${c.name}"></option>
                            </select>
                        </div>
                        <div class="input-group" th:if="${#strings.contains(ptype,'%sheng')}">
                            <div class="input-group-addon">请选择省市</div>
                            <select class="form-control" style="width: 100px;" id="pshengcode"
                                    onchange="shengChange(this.value,'pshengcode','pshicode','area2222')">
                                <option th:each="c:${shenglist}" th:value="${c.code}" th:text="${c.name}"></option>
                            </select>
                        </div>
                        <div class="input-group" id="shi" th:if="${#strings.contains(ptype,'%sheng')}">
                            <div class="input-group-addon">请选择市区</div>
                            <select class="form-control" style="width: 100px;" id="pshicode">
                                <option th:each="c:${shilist}" th:value="${c.code}" th:text="${c.name}"></option>
                            </select>
                        </div>
                        <div class="input-group" id="hydiv" th:if="${#strings.contains(ptype,'%hytype')}">
                            <div class="input-group-addon">请选择行业</div>
                            <select class="form-control" style="width: 100px;" id="hytype">
                                <option th:each="c:${hylist}" th:value="${c.code}" th:text="${c.name}"></option>
                                <!--<option value="">口腔</option>-->
                            </select>
                        </div>
                        <div class="input-group" id="hydiv" th:if="${#strings.contains(ptype,'%types')}">
                            <div class="input-group-addon">请选择类别</div>
                            <select class="form-control" style="width: 100px;" id="qstatus">
                                <option th:each="c:${types}" th:value="${c.type}" th:text="${c.typename}"></option>
                            </select>
                        </div>
                        <div class="input-group" id="healthtypediv" th:if="${#strings.contains(ptype,'%healthtype')}">
                            <div class="input-group-addon">请选择统计类型</div>
                            <select class="form-control" style="width: 100px;" id="healthtype">
                                <option value="">全部</option>
                                <option value="0">登记信息</option>
                                <option value="1">打卡信息</option>
                                <option value="2">检测信息</option>
                            </select>
                        </div>
                        <div class="input-group" id="storesdiv" th:if="${#strings.contains(ptype,'%stores')}">
                            <div class="input-group-addon">请选择机构</div>
                            <select class="form-control" style="width: 100px;" id="storeid">
                                <option th:each="c:${stores}" th:value="${c.id}" th:text="${c.name}"></option>
                            </select>
                        </div>
                        <div class="input-group" th:if="${#strings.contains(ptype,'%sdate')}">
                            <div class="input-group-addon">请选择日期</div>
                            <input type="text" class="form-control datepicker" style="width:200px;text-align: center" name="statday"
                                   id="statday" placeholder=""/>
                        </div>
                    </div>
                    <div class="pull-right" th:if="${#strings.contains(ptype,'%addfile')}">
                        <!--<button data-toggle="modal" class="btn btn-outline btn-primary" href="#modal-add-form">-->
                        <!--<i class="glyphicon glyphicon-plus" aria-hidden="true"></i>添加-->
                        <!--</button>-->
                        <button class="btn-sm btn-info btn-sm" data-toggle="modal" href="#modal-add-file"
                                style="margin-left: 10px">
                            <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>导入excel
                        </button>
                    </div>
                    <div class="pull-right" th:if="${utype>=99}">
                        <button class="btn-sm btn-info btn-sm" data-toggle="modal"
                                href="#import-form" style="margin-left: 10px">
                            <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>导入电话卡
                        </button>
                    </div>
                    <!--<div class="pull-right" th:if="${#strings.contains(ptype,'%kaika')}">-->
                    <div class="pull-right" th:if="${utype>=99}">
                        <button class="btn-sm btn-info btn-sm" data-toggle="modal"
                                href="#kaika-form" style="margin-left: 10px">
                            <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>开卡
                        </button>
                    </div>
                    <div class="pull-right" th:if="${#strings.contains(ptype,'%add')}">
                        <!--<button data-toggle="modal" class="btn btn-outline btn-primary" href="#modal-add-form">-->
                        <!--<i class="glyphicon glyphicon-plus" aria-hidden="true"></i>添加-->
                        <!--</button>-->
                        <button class="btn-sm btn-info btn-sm" data-toggle="modal" href="#modal-add-form"
                                style="margin-left: 10px">
                            <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>添加
                        </button>
                    </div>
                    <div class="pull-right">
                        <button class="btn-sm btn-primary btn-sm" id="search_btn">
                            <i class="glyphicon glyphicon-search" aria-hidden="true"></i>查询
                        </button>
                    </div>
                    <div class="pull-right" th:if="${#strings.contains(ptype,'%healthtype')}">
                        <button class="btn-sm btn-primary btn-sm" id="export_btn">
                            <i class="glyphicon" aria-hidden="true"></i>导出excel
                        </button>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-12">
            <div class="example">
                <table id="mytable" class="table"></table>
            </div>
        </div>
    </div>
</div>